package com.xzx.mapper;

import com.xzx.po.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/8/18 14:08
 */
@Mapper
public interface UserMapper {

    UserPO selectByUserNameAndPwd(UserPO po);

    int count(@Param("query") String query);

    List<UserPO> list(@Param("query") String query,
                      @Param("limit") int limit,
                      @Param("offset") int offset);

    void insert(UserPO userPO);

    void delete(@Param("ids") List<Integer> ids);

    UserPO getById(@Param("id") Integer id);

    void update(UserPO userPO);
}
